<%@page import="Persistent.imple.UserDAOImpl"%>
<%@page import="Persistant.Dao.UserDAO"%>
<%@page import="Persistent.imple.ForumDAOImpl"%>
<%@page import="java.util.*"%>
<%@page import="model.*"%>
<%@page import="Persistant.Dao.ForumDAO"%>
<%@ include file="importhead.jsp" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<link href="css/blogermin.css" rel="stylesheet" type="text/css" />
<link href="css/topmenu.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>

  <body>
   <!-- 顶部菜单，使用 css/topmenu.css样式-->
			<div id="sysmenu">
			<%@include file = "sysmenu.jsp" %>
			</div> <!-- end sysmenu -->
			<!-- 菜单2区，菜单为文章目录和关于我-->
			<div id = "menu2">
			<ul>
			<li ><a href="blogermain.do">回主页</a></li>
			<li id="menuDiv"></li>
			<li ><a href="bloger.do?bloger=${blogeruserid}">博文目录</a></li>
			<li id="menuDiv"></li>
			<li ><a href="#">关于我</a></li>
			</ul>
			</div>
			<!-- 博主个人图片区 -->
				<div id = "masterinfo">
				
				<img src="/TomcatUpload/${blogeruser.photoname}" title="${blogeruser.nickname}" width="100%"
				height="100%" alt="${blogeruser.nickname}"/>
				</div>
				<!-- 博主个人签名区-->
				<div id = "bloginfo">
				<span id="bloger">【${blogeruser.nickname}</span><span id="bloger">的博客】
				</span><br><br />
				<span id="sign">${blogeruser.signed}</span>
				</div>
				<!--博主空间统计区-->
				<div id = "statistic">
				<div id = "statistictopic">
				<span>统计数据</span>
				</div>
				<table width="100%">
				<tr>
				<td width="60%" style="text-align:right">当前浏览人数：</td>
				<td width="40%" style="text-align:right;padding-right:10px">32</td>
				</tr>
				<tr>
				<td style="text-align:right">评论数：</td>
				<td style="text-align:right; padding-right:10px">521</td>
				</tr>
				<tr>
				<td style="text-align:right">历史浏览人数：</td>
				<td style="text-align:right; padding-right:10px">1928</td>
				</tr>
				</table>
				</div>
				<!--热点文章目录区-->
				<div id = "recommend">
				<div id = "recommendtopic">
				<span>热点博文</span>
				</div>
				<ul>
				<li><a href="article.html">【丽江】冒着大雨奔向...(11)</a></li>
				<li><a href="#">【新加坡】路过但不想...(23)</a></li>
				</ul>
			</div>
				<!--文章搜索区-->
				<div id = "search">
				<div id = "searchtopic">
				<span>搜博主文章</span>
				</div>
				<span>
				<form id="searchform" name="searchform" method="post" action="">
				<input style="width:120px; margin-left:10px" type="text"
				name="txtsearch" id="txtsearch" />
				<input style="width:60px" type="submit" name="btnsearch"
				id="btnsearch" value="搜索" />
				</form>
				</span>
				</div>
				<div style="clear:both"></div>
				<!--文章目录区-->
				<div id = "main">
				<div id = "topic">
				<span class="articletopic">全部博文 ( ${articleAmount} )</span>
				</div>
				
				
				<div id = "content">
				<table width="100%">
				<c:forEach items="${forumlist}" var="forum">
				<tr>
				<td id="blogcontent">
				<a href ="blogerartil.do?forumid=${forum.titleid}">【${forum.serilize}】${forum.topic}</a></td>
				<td id="blogreview">(${forum.reviewcounter}/${forum.scancounter})</td>
				<td id="blogcreate">${forum.createtime}</td>
				</tr>
				</c:forEach>
				</table>
				</div>
				
				<div id = "footer">
						<ul>
						<li class = "pagedo">共${pageAmount}页</li>
						<li class = "pagedo"><a href="bloger.do?bloger=${blogeruserid}&curpage=${pageAmount}">最末页</a></li>
						<li class = "pagedo"><a href="bloger.do?bloger=${blogeruserid}&curpage=${pageAmount}">下一页</a></li>
						
						
						
						
						
						
						<c:forEach begin="1" end="${pageAmount}" step="1" var="i">
						<c:if test="${pageAmount-i+1 == curpage}">			
						<li class = "page"><a href="bloger.do?bloger=${blogeruserid}&curpage=${pageAmount-i+1}">${pageAmount-i+1}</a></li>
						</c:if>
						<c:if test="${pageAmount-i+1 != curpage}">	
						<li class = "pageselect"><a href="bloger.do?bloger=${blogeruserid}&curpage=${pageAmount-i+1}">${pageAmount-i+1}</a></li>
						</c:if>
						</c:forEach>	
						<li class = "pagedo"><a href="bloger.do?bloger=${blogeruserid}&curpage=${curpage-1}">上一页</a></li>
						<li class = "pagedo"><a href="bloger.do?bloger=${blogeruserid}&curpage=1">首页</a></li>
						
						
						</ul>
				</div>
						
						</div>
						<script type="text/javascript">
						$(document).ready(
						function () {
						//判断显示器的分辨率
						var winWidth = document.documentElement.clientWidth;
						var winHeight = document.documentElement.clientheight;
						//var main = document.getElementById("main");
						var main1 = $("#main");
						var topic = $("#topic");
						var content = $("#content");
						var footer = $("#footer");
						//alert(main.style.width);
						//alert(main1.width());
						//main.style.width = (winWidth - 1024)/2 +760 +"px";
						main1.css("width", (winWidth - 1024)/2 +760 +"px");
						topic.css("width", (winWidth - 1024)/2 +760-22 +"px");
						content.css("width", (winWidth - 1024)/2 +760 +"px");
						footer.css("width", (winWidth - 1024)/2 +760 +"px");
						}
						);
						</script>
						<div class="copyright">
						<p>Copyright © 2014 - Software Technology from <a
						href="http://www.yngsxy.net/" title="云南工商学院" target="_blank">云南工
						商学院</a></p>
						</div>
  </body>
</html>